package com.lxw.nonghe.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author lxw
 * @since 2025-04-17
 */
@Data
@Accessors(chain = true)
@TableName("t_user")
@ApiModel(value = "User对象", description = "用户表")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户唯一标识")
    @TableId(type = IdType.AUTO)
    private Integer userId;

    @ApiModelProperty("用户登录名")
    private String username;

    @ApiModelProperty("加密后的登录密码")
    private String password;

    @ApiModelProperty("行政编码")
    private String parentCode;

    @ApiModelProperty("关联角色ID")
    private Integer roleId;

    @ApiModelProperty("注册时间")
    private Date registerTime;
}
